{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
	<div class="content-tabs">
			<ol class="breadcrumb">
				<li>
					<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
				</li>
				<li><strong>交易记录</strong></li>
			</ol>
	</div>
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('search')}">
		<div class="row">
                           <div class="col-sm-2 input-group" style="width: 100%;">
                           	&nbsp;&nbsp;
                     		    用户类型<select  name="user_type" class="bank" >
                                    <option value="0">用户类型</option>
                                    <option value="1">会员</option>
                                    <option value="2">商户</option>
                                    <option value="3">总代理</option>
                               </select>
                                                                               操作类型<select  name="type" class="bank">
                                    <option value="0" >操作类型</option>
                                    <option value="pay" >代理支付</option>
                                    <option value="join">加盟商支付</option>
                                    <option value="accept">保证金</option>
                                    <option value="take">提取保证金</option>
                                </select>
                                	支付方式<select  name="pay_type" class="bank">
                                    <option value="0">支付方式</option>
                                    <option value="1">余额</option>
                                    <option value="2">微信</option>
                                    <option value="3">支付宝</option>
                                    <option value="4">银联</option>
                                </select>
                                &nbsp;&nbsp;
                               <span class="bank">
                                        <button type="submit" class="btn btn-sm btn-primary"> 搜索</button> </span>
                            </div>
                           
                            
        </div>
        
        
        </form>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr text-center">
                                <th>用户类型</th>
                                <th>操作类型</th>
                                <th>变化金额</th>
                                <th>运营商</th>
                                <th>时间</th>
                            </tr>
                        </thead>
                        <tbody id="list" class=" text-center">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{if $ad.user_type==1}
                        			会员
                        			{elseif $ad.user_type==2}
                        			商户
                        		    {elseif $ad.user_type==3}
                        			总代理
                        			{/if}
                        		</td>
                        		<td>
                        			{if $ad.type=='pay'}
                        			代理支付
                        			{elseif  $ad.type=='join'}
                        			加盟商支付
                        			{elseif  $ad.type=='accept'}
                        			保证金
                        			{elseif  $ad.type=='take'}
                        			提取保证金
                        			{elseif  $ad.type=='order'}
                        			测试
                        			{/if}
                        		</td>
                        		<td>{$ad.price}</td>
                        		<td><p>{$ad.co_id}</p> <i class="fa fa-cny"></i> {$ad.co_price}</td>
                        		<td>{$ad.add_time}</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script>
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}